package cn.operation.backend.bo.baseArea;

import java.util.Date;
import java.util.List;

/**
 * @FileName: BaseAreaDTO
 * @Description: 区域数据
 * @author: Felix
 * @date: 2017/5/24.
 */
public class BaseAreaBo {

    private Integer id;

    private String code;

    private String name;

    private String sname;

    private Integer parentId;
    private String parentName;

    private String path;

    private String status;

    private String level;

    private String pinyin;

    private String initialWords;

    private String comment;
    
    private Date gmtCreate;
    
    private Date gmtModified;
    
    private BaseAreaBo parentAreaBO;
    
    private List<BaseAreaBo> childAreaBOList;

    public Integer getId() {
        return id;
    }

    public BaseAreaBo setId(Integer id) {
        this.id = id;
        return this;
    }

    public String getCode() {
        return code;
    }

    public BaseAreaBo setCode(String code) {
        this.code = code;
        return this;
    }

    public String getName() {
        return name;
    }

    public BaseAreaBo setName(String name) {
        this.name = name;
        return this;
    }

    public String getSname() {
        return sname;
    }

    public BaseAreaBo setSname(String sname) {
        this.sname = sname;
        return this;
    }

    /**
	 * @return the parentId
	 */
	public Integer getParentId() {
		return parentId;
	}

	/**
	 * @param parentId the parentId to set
	 */
	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	public String getParentName() {
        return parentName;
    }

    public BaseAreaBo setParentName(String parentName) {
        this.parentName = parentName;
        return this;
    }

    public String getPath() {
        return path;
    }

    public BaseAreaBo setPath(String path) {
        this.path = path;
        return this;
    }

    public String getStatus() {
        return status;
    }

    public BaseAreaBo setStatus(String status) {
        this.status = status;
        return this;
    }

    public String getLevel() {
        return level;
    }

    public BaseAreaBo setLevel(String level) {
        this.level = level;
        return this;
    }

    public String getPinyin() {
        return pinyin;
    }

    public BaseAreaBo setPinyin(String pinyin) {
        this.pinyin = pinyin;
        return this;
    }

    public String getInitialWords() {
        return initialWords;
    }

    public BaseAreaBo setInitialWords(String initialWords) {
        this.initialWords = initialWords;
        return this;
    }

    public String getComment() {
        return comment;
    }

    public BaseAreaBo setComment(String comment) {
        this.comment = comment;
        return this;
    }
    
    /**
	 * @return the gmtCreate
	 */
	public Date getGmtCreate() {
		return gmtCreate;
	}

	/**
	 * @param gmtCreate the gmtCreate to set
	 */
	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	/**
	 * @return the gmtModified
	 */
	public Date getGmtModified() {
		return gmtModified;
	}

	/**
	 * @param gmtModified the gmtModified to set
	 */
	public void setGmtModified(Date gmtModified) {
		this.gmtModified = gmtModified;
	}
	
	/**
	 * @return the parentAreaBO
	 */
	public BaseAreaBo getParentAreaBO() {
		return parentAreaBO;
	}

	/**
	 * @param parentAreaBO the parentAreaBO to set
	 */
	public void setParentAreaBO(BaseAreaBo parentAreaBO) {
		this.parentAreaBO = parentAreaBO;
	}

	/**
	 * @return the childAreaBOList
	 */
	public List<BaseAreaBo> getChildAreaBOList() {
		return childAreaBOList;
	}

	/**
	 * @param childAreaBOList the childAreaBOList to set
	 */
	public void setChildAreaBOList(List<BaseAreaBo> childAreaBOList) {
		this.childAreaBOList = childAreaBOList;
	}

	@Override
    public String toString() {
        return "BaseAreaBO{"+
                "code='" + code +
                ", name='" + name +
                ", sname='" + sname +
                ", status='" + status +
                ", comment='" + comment +
                ", parentName=" + parentName +
                ", parentId=" + parentId +
                ", path=" + path +
                ", level=" + level +
                ", pinyin=" + pinyin +
                ", initialWords=" + initialWords +
                '}';
    }
}
